package com.springdemo;

import com.springdemo.enums.EnumTest;
import com.springdemo.utils.DynamicEnumUtils;

public class Test {

    public static void main(String[] args) {

        DynamicEnumUtils.addEnum(EnumTest.class,"LIANTONG",new Class[]{String.class,String.class},new Object[]{"2","联通"});
        DynamicEnumUtils.addEnum(EnumTest.class,"YIDONG",new Class[]{String.class,String.class},new Object[]{"3","移动"});
        for (EnumTest value : EnumTest.values()) {

            System.out.println(value.getValue());
        }
    }
}
